#version 430
uniform mat4 u_proj;
uniform mat4 u_view;
uniform mat4 u_model;
uniform vec3 u_eyepos;
uniform vec3 u_earth2sun;//from earth point to sun
uniform float u_near;

layout(location = 0) in vec3 position;
out vec2 ndcposi ; // position in NDC near plane
void main()
{
	vec3 posi = position;
	posi.z = 0.9999; // this is NDC coordinate not clip coordinate. I am confusing now.
	gl_Position = vec4(posi, 1.0);
	ndcposi = position.xy;// vec3(position.x, position.y, -1.0) ;
}
